package com.ruoyi.system.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 周用水量汇总对象 water_weekly_usage
 * 
 * @author ruoyi
 * @date 2025-09-20
 */
public class WaterWeeklyUsage extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 表号 */
    @Excel(name = "表号")
    private String meterNo;

    /** 户号 */
    @Excel(name = "户号")
    private String userId;

    /** 户名 */
    @Excel(name = "户名")
    private String userName;

    /** 周开始日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "周开始日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startDate;

    /** 周结束日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "周结束日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endDate;

    /** 周序号(1-53) */
    @Excel(name = "周序号(1-53)")
    private Integer weekNumber;

    /** 年份 */
    @Excel(name = "年份")
    private String year;

    /** 周用水量 */
    @Excel(name = "周用水量")
    private BigDecimal weeklyConsumption;

    /** 日均用水量 */
    @Excel(name = "日均用水量")
    private BigDecimal averageDailyConsumption;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setMeterNo(String meterNo) 
    {
        this.meterNo = meterNo;
    }

    public String getMeterNo() 
    {
        return meterNo;
    }
    public void setUserId(String userId) 
    {
        this.userId = userId;
    }

    public String getUserId() 
    {
        return userId;
    }
    public void setUserName(String userName) 
    {
        this.userName = userName;
    }

    public String getUserName() 
    {
        return userName;
    }
    public void setStartDate(Date startDate) 
    {
        this.startDate = startDate;
    }

    public Date getStartDate() 
    {
        return startDate;
    }
    public void setEndDate(Date endDate) 
    {
        this.endDate = endDate;
    }

    public Date getEndDate() 
    {
        return endDate;
    }
    public void setWeekNumber(Integer weekNumber) 
    {
        this.weekNumber = weekNumber;
    }

    public Integer getWeekNumber() 
    {
        return weekNumber;
    }
    public void setYear(String year) 
    {
        this.year = year;
    }

    public String getYear() 
    {
        return year;
    }
    public void setWeeklyConsumption(BigDecimal weeklyConsumption) 
    {
        this.weeklyConsumption = weeklyConsumption;
    }

    public BigDecimal getWeeklyConsumption() 
    {
        return weeklyConsumption;
    }
    public void setAverageDailyConsumption(BigDecimal averageDailyConsumption) 
    {
        this.averageDailyConsumption = averageDailyConsumption;
    }

    public BigDecimal getAverageDailyConsumption() 
    {
        return averageDailyConsumption;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("meterNo", getMeterNo())
            .append("userId", getUserId())
            .append("userName", getUserName())
            .append("startDate", getStartDate())
            .append("endDate", getEndDate())
            .append("weekNumber", getWeekNumber())
            .append("year", getYear())
            .append("weeklyConsumption", getWeeklyConsumption())
            .append("averageDailyConsumption", getAverageDailyConsumption())
            .append("createTime", getCreateTime())
            .toString();
    }
}
